/*
 * @Author: ujjldn ujjldn0515@163.com
 * @Date: 2025-06-15 18:42:54
 * @LastEditors: ujjldn ujjldn0515@163.com
 * @LastEditTime: 2025-08-23 20:19:15
 * @FilePath: \g-table\index.js
 * @Description: userDeptRoleSelectDlg.js
 */
// index.js
import UserSelector from '@/components/UserSelector.vue'
import DeptSelector from '@/components/DeptSelector.vue'
import RoleSelector from '@/components/RoleSelector.vue'
import DeptSelectorH5 from '@/components/DeptSelectorH5.vue'
import UserSelectorH5 from '@/components/UserSelectorH5.vue'
import { gShowDialog } from '@/utils/useSelectDialog.js'

// 添加 GDialog 到全局对象
if (typeof window !== 'undefined') {
  window.GDialog = window.GDialog || {}
  window.GDialog.openDialog = window.GDialog.showDialog = gShowDialog
}

export { UserSelector, DeptSelector, RoleSelector, DeptSelectorH5, UserSelectorH5, gShowDialog };
/*
export default {
  install(app) {
    app.component('user-selector', UserSelector)
    app.component('dept-selector', DeptSelector)
    app.component('role-selector', RoleSelector)
  }
}*/